package com.briup.jd2511.jd2511bookstore.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Schema(name = "用户常用属性实体")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserBaseDto implements Serializable {

	@Schema(name = "id,更新时使用")
	public Integer id;

	@Schema(name = "用户名")
	private String username;

	@Schema(name = "密码,添加用户时使用")
	private String password;

	@Schema(name = "手机号")
	private String phone;

	@Schema(name = "用户头像")
	private String avatar;

	@Schema(name = "用户性别(0男，1女)")
	private String gender;

	@Schema(name = "用户状态(0正常，1禁用)")
	private Short status;

	@Schema(name = "用户生日")
	private LocalDate birthday;
}
